<%@ taglib uri='/tags/struts-bean' prefix='bean' %>
<%@ taglib uri='/tags/struts-html' prefix='html' %>
<%@ taglib uri='/tags/struts-logic' prefix='logic' %>
<%@ taglib uri='/tags/struts-nested' prefix='nested' %>
<%@ taglib uri="/tags/radioanswers" prefix="radioanswers" %>

<html:form action="/add" onsubmit="return false;" >
	<div onKeyPress="return processEnter(event, '/add.do?action=checkanswer123')">  
		<table border="0" align="center" width="70%">
            <tr>
                 <td>&nbsp;</td>
            </tr> 	                  
            <tr>
                <td class="leftlabel">
                     Question #: <bean:write name="aaform" property="questionNumber"/>
                </td>                 
            </tr>
            <tr>
                <td>&nbsp;</td>                 
            </tr>  
            <tr>
                <td class="datacenter">
                	<fieldset>
                		<table border="0" width="100%">
                			<tr>
                				<td>
                					<bean:write property="htmlQuestion" name="aaform" filter="false"/>
                				</td>
                			</tr>
				            <tr>
				             	 <td>
				             	 	<fieldset>
				             	 		<legend class="legend" align="left">Choose  <span> the answer </span></legend>
				 	             	 	<radioanswers:display  onClick="checkAnswer('/add.do?action=checkanswer')" />
				             	 	</fieldset>
				             	 </td> 
				            </tr>				                           
				            <tr>
				                <td class="rightlabel">
				                	For the next sum, click <a href="<%=request.getContextPath()%>/add.do?action=display">here</a>                     			
				                </td>                 
				            </tr>                			
                		</table>
                	</fieldset>
                </td>                 
            </tr>   
		</table>  
	</div>
</html:form>
